﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using Shared;

namespace OnlineShop
{
    interface IMainView: IView
    {
        event Action CategoryChanged;
        event Action RowSelected;
        event Action Switch_clicked;

        void SetPictureSet(Image image);
        void SetId(string id);
        void SetName(string name);
        void SetPrice(string price);
        void SetDescription(string description);
        int IdFromDataGrid();
        void SetListCategories(ICollection<string> categories);
        void SetListCategoriesForProduct(ICollection<string> categories);
        string ReturnSelectedCategoryTable();
        string ProductCategoryFromProdInfo { get; set; }
        void SetCurrentUser(string user);

        ICollection<Product> tableProducts { set; }
        int ReturnSelectedProductId();

    }
}
